<?php

	$this->Html->script(array('jquery.maskedinput-1.2.2.min','maskinput','flexigrid.pack','somente-numeros'), false);
	$this->Html->css('flexigrid', null, array('inline' => false));

	//$calendarioacademico_id = $this->request->data['CalendarioAcademicoCargaHoraria']['calendario_academico_id'];
	$calendarioacademico_id = $this->request->data['CalendarioAcademicoCargaHoraria']['calendario_academico_id'];
	
	echo "<fieldset><legend>Alterar Carga Horária: $nome_calendario_academico</legend>";
	
	echo $this->Form->create('CalendarioAcademicoCargaHoraria');
	echo $this->Form->input('id');
	echo $this->Form->input('calendario_academico_id',array('type' => 'hidden'));
	echo $this->Form->input('disciplina_id',array('type' => 'select', 'options' => $disciplinas, 'empty' => 'Selecione...', 'class' => 'tamanho50', 'label' => __('Disciplinas')));
	echo '<div style="clear:both;"></div>';
	echo $this->Form->input('carga_horaria_1',array('type'=> 'text', 'class' => 'maskhoraria2 horaria2', 'label' => __('Carga Horária 1º Bimestre')));
	echo '<div style="clear:both;"></div>';
	echo $this->Form->input('carga_horaria_2',array('type'=> 'text', 'class' => 'maskhoraria2 horaria2', 'label' => __('Carga Horária 2º Bimestre')));
	echo '<div style="clear:both;"></div>';
	echo $this->Form->input('carga_horaria_3',array('type'=> 'text', 'class' => 'maskhoraria2 horaria2', 'label' => __('Carga Horária 3º Bimestre')));
	echo '<div style="clear:both;"></div>';
	echo $this->Form->input('carga_horaria_4',array('type'=> 'text', 'class' => 'maskhoraria2 horaria2', 'label' => __('Carga Horária 4º Bimestre')));
	echo '<div style="clear:both;"></div>';
	echo $this->Form->input('carga_horaria_falta',array('type'=> 'text', 'class' => 'maskhoraria2 horaria2', 'label' => __('Carga Horária da Falta')));
	echo '<div style="clear:both;"></div>';
	echo '<div class="botoes_form">';
	echo $this->Form->button('Salvar', array('type' => 'submit'));
	echo $this->Form->button('Voltar', array('type'=>'button', 'onClick' => "javascript:location='{$this->request->base}/calendario_academicos/alterar/$calendarioacademico_id'"));
	echo '</div>'; 
	echo $this->Form->end();
	echo '</fieldset>';
	